<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">

    var arr = [123,123,123,543,65,657];

    for(var i in arr) {
        console.log(arr[i]);
    }

    var emp = function(empno,ename) {
        this.empno = empno;
        this.ename = ename;
    }

    var e = new emp(7777,"SMITH");

    for(var e1 in e) {
        console.log(e[e1]);
    }

    with(e) {
        console.log(empno,ename);
    }


    </script>
</body>
</html>